home *** CD-ROM | disk | FTP | other *** search
- // Listing 7
- // newtest.h : main header file for the application
- //
- // Copyright Singleton Systems Ltd 1994
-
- #if !defined (_NEWTEST_H_)
- #define _NEWTEST_H_
-
- #ifndef __AFXWIN_H__
- #error 'stdafx.h' required
- #endif
-
- #include "resource.h" // main symbols
- #include "..\cout\cstrwnd.h"
- #include "..\cout\winstrm.h"
-
- class CComdtestApp : public CWinApp
- {
- public:
-
- void DoTest ();
- static void FilePrintHeapReport(char * msg = NULL);
-
- // Overrides
- virtual BOOL InitInstance();
- virtual int ExitInstance ();
-
- // Implementation
-
- //{{AFX_MSG(CComdtestApp)
- afx_msg void OnAppAbout();
- afx_msg void OnFileClose();
- afx_msg void OnFilePrintHeapReport();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- void OnFileOpen ();
-
- public:
- void set_exit_code (int code)
- // only update if not already set
- {if (exit_code == 0) exit_code = code;}
-
- private:
- int exit_code;
- winstreambuf * coutbuf;
- ostreamWnd * cout_window;
- };
- #endif
-